package com.moli.iov.down.command.design.decorator;

import com.moli.iov.down.model.dto.remoting.CommandDto;

/**
 * <p>
 *  kafka发送命令的 装饰者
 * </p>
 *
 * @author: zql
 * @Date: 2018/12/28 14:24
 */
public class AbstractDecorator implements AbstractSendCommand {

    private AbstractSendCommand aSendCommand;

    public AbstractDecorator(AbstractSendCommand aSendCommand) {
        this.aSendCommand = aSendCommand;
    }

    @Override
    public void sendCommand(CommandDto commandDto, byte[] allData) {
        this.aSendCommand.sendCommand(commandDto, allData);
    }
}
